<!DOCTYPE html>
<html lang="zh-Hans">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#222" media="(prefers-color-scheme: dark)"><meta name="generator" content="Hexo 6.2.0">


  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/blog/images/logo.svg" color="#222">

<link rel="stylesheet" href="/blog/css/main.css">



<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css" integrity="sha256-xejo6yLi6vGtAjcMIsY8BHdKsLg7QynVlFMzdQgUuy8=" crossorigin="anonymous">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">

<script class="next-config" data-name="main" type="application/json">{"hostname":"gitee.com","root":"/blog/","images":"/blog/images","scheme":"Gemini","darkmode":true,"version":"8.12.3","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":{"enable":false,"style":null},"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"Searching...","empty":"We didn't find any results for the search: ${query}","hits_time":"${hits} results found in ${time} ms","hits":"${hits} results found"}}</script><script src="/blog/js/config.js"></script>

    <meta name="description" content="spring cloud官方文档提到的服务开发的12项要素。 I. Codebase从一个代码库部署到多个环境。 II. Dependencies使用显式的声明隔离依赖，即模块单独运行，并可以显式管理依赖。 III. Config*在系统外部存储配置信息。 IV. Backing Services把支持性服务看做是资源，支持性服务包括数据库、消息队列、缓冲服务器等。 V. Build, relea">
<meta property="og:type" content="article">
<meta property="og:title" content="微服务开发的12项要素">
<meta property="og:url" content="https://gitee.com/lliugh/blog/2016/07/16/%E5%BE%AE%E6%9C%8D%E5%8A%A1%E5%BC%80%E5%8F%91%E7%9A%8412%E9%A1%B9%E8%A6%81%E7%B4%A0/index.html">
<meta property="og:site_name" content="lliugh 的博客">
<meta property="og:description" content="spring cloud官方文档提到的服务开发的12项要素。 I. Codebase从一个代码库部署到多个环境。 II. Dependencies使用显式的声明隔离依赖，即模块单独运行，并可以显式管理依赖。 III. Config*在系统外部存储配置信息。 IV. Backing Services把支持性服务看做是资源，支持性服务包括数据库、消息队列、缓冲服务器等。 V. Build, relea">
<meta property="og:locale">
<meta property="article:published_time" content="2016-07-16T03:27:50.000Z">
<meta property="article:modified_time" content="2016-07-16T05:12:10.000Z">
<meta property="article:author" content="lliugh">
<meta name="twitter:card" content="summary">


<link rel="canonical" href="https://gitee.com/lliugh/blog/2016/07/16/%E5%BE%AE%E6%9C%8D%E5%8A%A1%E5%BC%80%E5%8F%91%E7%9A%8412%E9%A1%B9%E8%A6%81%E7%B4%A0/">



<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":false,"isPost":true,"lang":"zh-Hans","comments":true,"permalink":"https://gitee.com/lliugh/blog/2016/07/16/%E5%BE%AE%E6%9C%8D%E5%8A%A1%E5%BC%80%E5%8F%91%E7%9A%8412%E9%A1%B9%E8%A6%81%E7%B4%A0/","path":"2016/07/16/微服务开发的12项要素/","title":"微服务开发的12项要素"}</script>

<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>微服务开发的12项要素 | lliugh 的博客</title>
  






  <noscript>
    <link rel="stylesheet" href="/blog/css/noscript.css">
  </noscript>
<link rel="alternate" href="/blog/atom.xml" title="lliugh 的博客" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="Toggle navigation bar" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/blog/" class="brand" rel="start">
      <i class="logo-line"></i>
      <p class="site-title">lliugh 的博客</p>
      <i class="logo-line"></i>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu"><li class="menu-item menu-item-home"><a href="/blog/" rel="section"><i class="fa fa-home fa-fw"></i>Home</a></li><li class="menu-item menu-item-tags"><a href="/blog/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>Tags</a></li><li class="menu-item menu-item-archives"><a href="/blog/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>Archives</a></li>
  </ul>
</nav>




</div>
        
  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>

  <aside class="sidebar">

    <div class="sidebar-inner sidebar-overview-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          Table of Contents
        </li>
        <li class="sidebar-nav-overview">
          Overview
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">lliugh</p>
  <div class="site-description" itemprop="description">一只特立独行的猪</div>
</div>
<div class="site-state-wrap site-overview-item animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
        <a href="/blog/archives/">
          <span class="site-state-item-count">17</span>
          <span class="site-state-item-name">posts</span>
        </a>
      </div>
      <div class="site-state-item site-state-tags">
          <a href="/blog/tags/">
        <span class="site-state-item-count">7</span>
        <span class="site-state-item-name">tags</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author site-overview-item animated">
      <span class="links-of-author-item">
        <a href="https://github.com/lliugh" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;lliugh" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:guohaoliu@gmail.com" title="E-Mail → mailto:guohaoliu@gmail.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://weibo.com/lliugh" title="Weibo → https:&#x2F;&#x2F;weibo.com&#x2F;lliugh" rel="noopener" target="_blank"><i class="fab fa-weibo fa-fw"></i>Weibo</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://twitter.com/lliugh" title="Twitter → https:&#x2F;&#x2F;twitter.com&#x2F;lliugh" rel="noopener" target="_blank"><i class="fab fa-twitter fa-fw"></i>Twitter</a>
      </span>
  </div>



        </div>
      </div>
    </div>
  </aside>
  <div class="sidebar-dimmer"></div>


    </header>

    
  <div class="back-to-top" role="button" aria-label="Back to top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-Hans">
    <link itemprop="mainEntityOfPage" href="https://gitee.com/lliugh/blog/2016/07/16/%E5%BE%AE%E6%9C%8D%E5%8A%A1%E5%BC%80%E5%8F%91%E7%9A%8412%E9%A1%B9%E8%A6%81%E7%B4%A0/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/blog/images/avatar.gif">
      <meta itemprop="name" content="lliugh">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="lliugh 的博客">
      <meta itemprop="description" content="一只特立独行的猪">
    </span>

    <span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
      <meta itemprop="name" content="微服务开发的12项要素 | lliugh 的博客">
      <meta itemprop="description" content="">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          微服务开发的12项要素
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">Posted on</span>
      

      <time title="Created: 2016-07-16 11:27:50 / Modified: 13:12:10" itemprop="dateCreated datePublished" datetime="2016-07-16T11:27:50+08:00">2016-07-16</time>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
        <p>spring cloud官方文档提到的服务开发的12项要素。</p>
<p>I. Codebase<br>从一个代码库部署到多个环境。</p>
<p>II. Dependencies<br>使用显式的声明隔离依赖，即模块单独运行，并可以显式管理依赖。</p>
<p>III. Config<br>*在系统外部存储配置信息。</p>
<p>IV. Backing Services<br>把支持性服务看做是资源，支持性服务包括数据库、消息队列、缓冲服务器等。</p>
<p>V. Build, release, run<br>严格的划分编译、构建、运行阶段，每个阶段由工具进行管理。</p>
<p>VI. Processes<br>应用作为无状态执行。</p>
<p>VII. Port binding<br>经由端口绑定导出服务，优先选择 HTTP API 作为通用的集成框架。</p>
<p>VIII. Concurrency<br>并发性使用水平扩展实现，对于web就是水平扩展web应用实现。</p>
<p>IX. Disposability<br>服务可处置性，任何服务可以随意终止或启动。</p>
<p>X. Dev&#x2F;prod parity<br>开发和生产环境保持高度一致，一键式部署。</p>
<p>XI. Logs<br>将日志看做是事件流来管理，所有参与的服务均使用该方式处理日志。</p>
<p>XII. Admin processes<br>管理任务作为一次性的过程运行（使用脚本管理服务启动和停止）。</p>
<p>转自：<a target="_blank" rel="noopener" href="http://www.cnblogs.com/skyblog/p/5099140.html">http://www.cnblogs.com/skyblog/p/5099140.html</a></p>

    </div>

    
    
    

    <footer class="post-footer">

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/blog/2016/06/27/URL%E7%9A%84ASCII%E7%A0%81%E8%A1%A8/" rel="prev" title="URL的ASCII码表">
                  <i class="fa fa-chevron-left"></i> URL的ASCII码表
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/blog/2018/02/11/%E5%A2%9E%E5%8A%A0mybatis%E6%97%A5%E5%BF%97/" rel="next" title="增加mybatis日志">
                  增加mybatis日志 <i class="fa fa-chevron-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>






</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">


<div class="copyright">
  &copy; 
  <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">lliugh</span>
</div>
  <div class="powered-by">Powered by <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/" rel="noopener" target="_blank">NexT.Gemini</a>
  </div>

    </div>
  </footer>

  
  <script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
<script src="/blog/js/comments.js"></script><script src="/blog/js/utils.js"></script><script src="/blog/js/motion.js"></script><script src="/blog/js/next-boot.js"></script>

  





  





</body>
</html>
